--编写者：alt
--功能介绍：容器ui模板
--使用方法：直接粘贴

local containers = require "containers"
local params = containers.params

params.xxxxxxxx =
{
    widget =
    {
        slotpos = {},
        animbank = "ui_backpack_2x4",
        animbuild = "ui_backpack_2x4",
        --pos = Vector3(-5, -70, 0),
        pos = Vector3(-5, -80, 0),
    },
    issidewidget = true,
    type = "pack",
    openlimit = 1,
}

for y = 0, 3 do
    table.insert(params.xxxxxxxx.widget.slotpos, Vector3(-162, -75 * y + 114, 0))
    table.insert(params.xxxxxxxx.widget.slotpos, Vector3(-162 + 75, -75 * y + 114, 0))
end
--------------------------------------------------------------------------
for k, v in pairs(params) do
    containers.MAXITEMSLOTS = math.max(containers.MAXITEMSLOTS, v.widget.slotpos ~= nil and #v.widget.slotpos or 0)
end
--------------------------------------------------------------------------
